package src;

import java.util.Date;

/**
 * Created by dell on 2017/7/25.
 */
public class DateTest {
    public static void main(String[] args) {
        Date dt=new Date();
        Date dt1=new Date(System.currentTimeMillis()+100);
        System.out.println(dt1);
        System.out.println(dt.compareTo(dt1));
        System.out.println(dt.before(dt1));
    }
}
